package com.example.viewmodelstudio.databinding;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

import android.os.Bundle;

import com.example.viewmodelstudio.R;

public class MainDataBindingActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityMainDataBindingBinding viewDataBinding = DataBindingUtil.setContentView(this, R.layout.activity_main_data_binding);
        viewDataBinding.setIdol(new Idol("倾城狐妖",5));
    }
}